(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/delivery/goods/goods" ], {
    "09c6": function(t, o, a) {},
    "11fb": function(t, o, a) {
        (function(t) {
            Object.defineProperty(o, "__esModule", {
                value: !0
            }), o.default = void 0;
            var a = {
                data: function() {
                    return {
                        tagList: [ "日用品", "食品", "文件", "数码产品", "衣服", "医药产品类" ],
                        payload: {
                            name: "日用品",
                            count: "",
                            number: 0,
                            long: "",
                            width: "",
                            height: ""
                        },
                        type: ""
                    };
                },
                computed: {
                    info: function() {
                        return "" === this.payload.long && "" === this.payload.width && "" === this.payload.height || "" !== this.payload.long && "" !== this.payload.width && "" !== this.payload.height;
                    }
                },
                onLoad: function(t) {
                    t.type && (this.type = t.type), 1 == this.type && (this.payload.count = 0), 2 == this.type && (this.payload.count = 1),  3 == this.type && (this.payload.count = 30),  4 == this.type && (this.payload.count = 1);
                },
                methods: {
                    changeTag: function(t) {
                        this.payload.name = t;
                    },
                    confirm: function() {
                        if ("" !== this.payload.name) if (this.payload.count < 1) this.$common.errorToShow("请输入正确的货物重量"); else if (this.info) if ("5" != this.type && this.payload.count > 600) this.$common.errorToShow("包裹重量不能超过600KG！"); else if ("5" == this.type && this.payload.count < 601) this.$common.errorToShow("包裹重量不能低于601KG！"); else if ("5" == this.type && this.payload.count > 500) this.$common.errorToShow("包裹重量不能超过500KG！"); else {
                            var o = {
                                totalWeight: this.payload.count,
                                totalNumber: this.payload.number,
                                long: this.payload.long,
                                width: this.payload.width,
                                height: this.payload.height,
                                cargodata: {
                                    name: this.payload.name,
                                    express_code: "",
                                    express_channel: "",
                                    transportType: ""
                                }
                            };
                            this.$db.set("goodsPayload", o), t.navigateBack();
                        } else this.$common.errorToShow("体积输入不完整"); else this.$common.errorToShow("请输入物品名称");
                    },
                    reduce: function(t) {
                        "4" == this.type && "count" == t ? this.payload[t] && Number(this.payload[t]) > 5 && (this.payload[t] = Number(this.payload[t]) - 1) : "5" == this.type && "count" == t ? this.payload[t] && Number(this.payload[t]) > 61 && (this.payload[t] = Number(this.payload[t]) - 1) : this.payload[t] && Number(this.payload[t]) > 1 && (this.payload[t] = Number(this.payload[t]) - 1);
                    },
                    increase: function(t) {
                        if (console.log("param", t), this.payload[t]++, "5" != this.type && "count" == t && this.payload.count > 600) return this.$common.errorToShow("包裹重量不能超过600KG！"), 
                        void (this.payload.count = this.payload.count - 1);
                    }
                }
            };
            o.default = a;
        }).call(this, a("543d").default);
    },
    3846: function(t, o, a) {
        var i = a("09c6");
        a.n(i).a;
    },
    "405f": function(t, o, a) {
        a.r(o);
        var i = a("11fb"), n = a.n(i);
        for (var e in i) "default" !== e && function(t) {
            a.d(o, t, function() {
                return i[t];
            });
        }(e);
        o.default = n.a;
    },
    "4a65": function(t, o, a) {
        a.r(o);
        var i = a("58cc"), n = a("405f");
        for (var e in n) "default" !== e && function(t) {
            a.d(o, t, function() {
                return n[t];
            });
        }(e);
        a("3846");
        var h = a("f0c5"), s = Object(h.a)(n.default, i.b, i.c, !1, null, "5d7d6c5a", null, !1, i.a, void 0);
        o.default = s.exports;
    },
    "58cc": function(t, o, a) {
        a.d(o, "b", function() {
            return i;
        }), a.d(o, "c", function() {
            return n;
        }), a.d(o, "a", function() {});
        var i = function() {
            this.$createElement, this._self._c;
        }, n = [];
    },
    "7c24": function(t, o, a) {
        (function(t) {
            a("98af"), i(a("66fd"));
            var o = i(a("4a65"));
            function i(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = a, t(o.default);
        }).call(this, a("543d").createPage);
    }
}, [ [ "7c24", "common/runtime", "common/vendor" ] ] ]);